Function.RegisterNamespace("System.Script");
if(!System.Script.ScriptLoader)throw new Error("Required dependency 'System.Script.ScriptLoader' was not found. Are you missing a script reference?");

Function.RegisterNamespace("System.Script.ScriptLoader.Attributes");

System.Script.ScriptLoader.Attributes.ImportAttribute=function(path,callback){
    if(path==undefined||!Object.IsType(Function,path.toString))throw new Error("System.Script.ScriptLoader.Attributes.ImportAttribute: 'path' must be convertible to String.");
    path=System.IO.Path.Normalize(path);
    System.Script.ScriptLoader.Import.apply(System.Script.ScriptLoader,arguments);
};

System.Script.ScriptLoader.Attributes.ImportAttribute.Inherit(System.Script.Attributes.Attribute);